using System;
using System.Collections.Generic;
using System.Text;
using Ghasam.Business.Domain.Entity;

namespace Ghasam.Business.DAO
{
    public interface IInvoiceDao : IDao<Invoice>
    {
        int CountInvoicesByExample(Invoice invoice);
        
        IList<Invoice> GetInvoicesByExample(Invoice invoice, int pageSize, int pageNumber, DateTime lastUpdateStartDate, DateTime lastUpdateEndDate);

        long GetMaxSerialByFormal(bool isFormal);

        IList<Invoice> SortInvoice(Invoice invoice, int pageSize, int pageNumber, DateTime lastUpdateStartDate, DateTime lastUpdateEndDate, string param, bool asc);
    }
}
